import { useHistory, useLocation, useRouteMatch } from "react-router-dom";
import qs from 'qs'
const B = (props) => {
	let history = useHistory()
	let location = useLocation()
	console.log(history, location, props)
	console.log(props)
	return <div>
		<button onClick={() => history.push({
			pathname: '/a',
			state: {
				id:'1',
				name:'yx'
			},
		})}>A</button>
		<button onClick={() => history.push('/c')}>C</button>
	</div>
}

export default B